FrameShapeChanged
TheFrameShapeChanged
method is called to notify this part that the frame shape of one of its display frames has changed.
void FrameShapeChanged (in ODFrame frame);
frame
- A reference to a display frame that was reshaped.
DISCUSSION
OpenDoc calls this method when it or this part's containing part changes the frame shape of one of this part's display frames.This part should perform any actions necessary to respond to the new shape. For example, your part should change its content layout, change its used shape, or resize its embedded frames.
Your part also has the option of requesting a different frame shape using its display frame's
RequestFrameShape
method, though it must be able to accept the shape it is given. If the size of the frame is insufficient, your part may ask its containing part for additional frames by calling its containing part'sRequestEmbeddedFrame
method.OVERRIDING
When you subclassODPart
, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.EXCEPTIONS
kODErrInvalidFrame
- The specified frame is not a display frame of this part.
SEE ALSO
TheODFrame::ChangeFrameShape
method (page 306).
TheODPart::RequestEmbeddedFrame
method (page 542).
TheODPart::RequestFrameShape
method (page 544).
"The FrameShapeChanged Method" on page 61 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Resizing an Embedded Frame" on page 120 in OpenDoc Programmer's Guide.
"Zooming" on page 230 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help